package _220331;

/**
 * @author ShadowLim
 * @create 2022-03-31-12:28
 */
public class 跑步锻炼 {
    static int[] days = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
    public static void main(String[] args) {
        int year = 2000, month = 1, day = 1, week = 6, ans = 0;
        while (true) {
            if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) {
                days[2] = 29;
            } else {
                days[2] = 28;   // 一定要写
            }
            if (day == 1 || week == 1) {
                ans += 2;
            } else {
                ans ++;
            }
            week++;
            day ++;
            if (day > days[month]) {
                day = 1;
                month ++;
            }
            if (month > 12) {
                year ++;
                month = 1;
            }
            if (week > 7) {
                week %= 7;
            }
            if (year == 2020 && month == 10 && day == 1) {
                ans += 2;
                break;
            }
        }
        System.out.println(ans);
    }
}
